﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FoeBullet : MonoBehaviour {
    public float speed = 30;

	// Use this for initialization
	void Start () {
		//子弹生成后天秒进行销毁
        Destroy(this.gameObject, 1f);
	}
	
	// Update is called once per frame
	void Update () {
        Move();
	}
    void Move()
    {
        transform.position = transform.position + new Vector3(0, 0, -1) * speed* Time.deltaTime;
    }

}
